package cn.wolfcode.query;

import cn.wolfcode.vo.TravelCondition;
import lombok.Getter;
import lombok.Setter;

/**
 * @Description: 旅游日记高查条件
 * @Author: 伍家钰
 * @Date: 2020/8/14 12:48
 * @Version: 1.0
 */
@Getter
@Setter
public class TravelQueryObject extends QueryObject {
    /**
     * 游记转态
     */
    private int state = -1;

    /**
     * 目的地id
     */
    private String destId;

    /**
     * 高查天数
     */
    private int dayType = -1;

    /**
     * 高查花费
     */
    private int perExpendType = -1;

    /**
     * 高查添加:最新和最热
     */
    private int orderType = 1;

    public TravelCondition getDay() {
        return TravelCondition.DAY_MAP.get(dayType);
    }

    public TravelCondition getPerExpendType() {
        return TravelCondition.PEREXPENDTYPE_MAP.get(perExpendType);
    }

    public String getOrderType() {
        return TravelCondition.ORDERTYPE_MAP.get(orderType);
    }
}
